1 From: Alexander Wetzel <Alexander@wetzel-home.de>
2 Date: Thu, 17 Jul 2025 18:25:47 +0200
3 Subject: [PATCH] wifi: mac80211: Don't call fq_flow_idx() for management
6 skb_get_hash() can only be used when the skb is linked to a netdev
9 Signed-off-by: Alexander Wetzel <Alexander@wetzel-home.de>
10 Fixes: 73bc9e0af594 ("mac80211: don't apply flow control on management frames")
11 Link: https://patch.msgid.link/20250717162547.94582-3-Alexander@wetzel-home.de
12 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
15 --- a/net/mac80211/tx.c
16 +++ b/net/mac80211/tx.c
17 @@ -1428,7 +1428,7 @@ static void ieee80211_txq_enqueue(struct
19 struct fq *fq = &local->fq;
20 struct fq_tin *tin = &txqi->tin;
21 - u32 flow_idx = fq_flow_idx(fq, skb);
24 ieee80211_set_skb_enqueue_time(skb);
26 @@ -1444,6 +1444,7 @@ static void ieee80211_txq_enqueue(struct
27 IEEE80211_TX_INTCFL_NEED_TXPROCESSING;
28 __skb_queue_tail(&txqi->frags, skb);
30 + flow_idx = fq_flow_idx(fq, skb);
31 fq_tin_enqueue(fq, tin, flow_idx, skb,